package com.wyz.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

@Data
@TableName("t_log")
public class Log {
    @TableId(type = IdType.AUTO)
    private Integer id;
    @TableField("content")//@TableField是将字段映射到数据库的注解，@TableField是将字段映射到pojo的注解
    private String content;
    @TableField("time")
    
    private String time;
    @TableField("operator")
    private String operator;
    @TableField("ip")
    private String ip;
    public Log(String content, String time, String operator, String ip) {
        super();
        this.content = content;
        this.time = time;
        this.operator = operator;
        this.ip = ip;
    }
}
